module.exports = {
  showBusy: function (o) {
    return wx.showToast({
      title: o,
      icon: "loading",
      duration: 2e3
    });
  },
  showSuccess: function (o) {
    return wx.showToast({
      title: o,
      icon: "success",
      duration: 2e3
    });
  },
  showModel: function (o, t) {
    wx.hideToast(), wx.showModal({
      title: o,
      content: JSON.stringify(t),
      showCancel: !1
    });
  },
  showLoading: function (o) {
    return wx.showToast({
      title: o,
      icon: "loading",
      mask: !0,
      duration: 1e4
    });
  },
  hideLoading: function () {
    wx.hideToast();
  },
  showWarning: function (o, t) {
    wx.hideToast(), wx.showModal({
      title: o,
      content: t,
      showCancel: !1
    });
  },
  showConfirm: function (o, t, n) {
    wx.hideToast(), wx.showModal({
      title: o,
      content: t,
      success: function (o) {
        o.confirm && "function" == typeof n && n();
      }
    });
  }
};